import request from '@/utils/request'

// api地址
const apiUri = {
  detail: 'page/detail',
  bannerList: 'api/banner/list',
  bannerDetail: 'api/banner/detail'
}

// 页面数据
export function detail(pageId) {
  return request.get(apiUri.detail, {
    pageId
  })
}
// 轮播列表
export function bannerList() {
  return request.post(apiUri.bannerList)
}
// 轮播详情
export function bannerDetail(data) {
  return request.post(apiUri.bannerDetail, data)
}